
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>QNBleApi · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="QNBleApi.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Overview
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../guide/android.html">
            
                <a href="../guide/android.html">
            
                    
                    android
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../guide/ios.html">
            
                <a href="../guide/ios.html">
            
                    
                    ios
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    work process
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../flow/ble_scale.html">
            
                <a href="../flow/ble_scale.html">
            
                    
                    Common Bluetooth scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../flow/ble_scale_custom_connect.html">
            
                <a href="../flow/ble_scale_custom_connect.html">
            
                    
                    Common Bluetooth Scale-Self-managed Bluetooth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../flow/kitchen_scale.html">
            
                <a href="../flow/kitchen_scale.html">
            
                    
                    Kitchen scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../flow/ble_user_scale.html">
            
                <a href="../flow/ble_user_scale.html">
            
                    
                    User Scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../flow/ble_ruler.html">
            
                <a href="../flow/ble_ruler.html">
            
                    
                    Bluetooth ruler
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    API
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.1" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html">
            
                    
                    QNBleApi
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#initsdk">
            
                    
                    initSdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#getcursystemblestate">
            
                    
                    getCurSystemBleState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setsysblestatelistener">
            
                    
                    setSysBleStateListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.4" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setbledevicediscoverylistener">
            
                    
                    setBleDeviceDiscoveryListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.5" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setbleconnectionchangelistener">
            
                    
                    setBleConnectionChangeListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.6" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setdataListener">
            
                    
                    setDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.7" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setblekitchenlistener">
            
                    
                    setBleKitchenListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.8" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setloglistener">
            
                    
                    setLogListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.9" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#startbledevicediscovery">
            
                    
                    startBleDeviceDiscovery
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.10" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#stopbledevicediscovery">
            
                    
                    stopBleDeviceDiscovery
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.11" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#connectdevice">
            
                    
                    connectDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.12" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#connectuserscaledevice">
            
                    
                    connectUserScaleDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.13" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#connectblekitchendevice">
            
                    
                    connectBleKitchenDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.14" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setblekitchendeviceconfig">
            
                    
                    setBleKitchenDeviceConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.15" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#disconnectdevice">
            
                    
                    disconnectDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.16" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#getconfig">
            
                    
                    getConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.17" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#convertweightwithtargetunit">
            
                    
                    convertWeightWithTargetUnit
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.18" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#builddevice">
            
                    
                    buildDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.19" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#buildprotocolhandler">
            
                    
                    buildProtocolHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.20" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#generatescaledata">
            
                    
                    generateScaleData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.21" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#physiquecalculation">
            
                    
                    physiqueCalculation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.22" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#switchuserscaleuser">
            
                    
                    switchUserScaleUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.23" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#updateuserscaleidentifyweight">
            
                    
                    updateUserScaleIdentifyWeight
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.24" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#setblerulerlistener">
            
                    
                    setBleRulerListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.25" data-path="QNBleApi.html">
            
                <a href="QNBleApi.html#connectrulerdevice">
            
                    
                    connectRulerDevice
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="QNUser.html">
            
                <a href="QNUser.html">
            
                    
                    QNUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="QNScaleData.html">
            
                <a href="QNScaleData.html">
            
                    
                    QNScaleData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="QNScaleStoreData.html">
            
                <a href="QNScaleStoreData.html">
            
                    
                    QNScaleStoreData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="QNScaleItemData.html">
            
                <a href="QNScaleItemData.html">
            
                    
                    QNScaleItemData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="QNBleDevice.html">
            
                <a href="QNBleDevice.html">
            
                    
                    QNBleDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="QNBleBroadcastDevice.html">
            
                <a href="QNBleBroadcastDevice.html">
            
                    
                    QNBleBroadcastDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="QNBleKitchenDevice.html">
            
                <a href="QNBleKitchenDevice.html">
            
                    
                    QNBleKitchenDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="QNConfig.html">
            
                <a href="QNConfig.html">
            
                    
                    QNConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="QNWiFiConfig.html">
            
                <a href="QNWiFiConfig.html">
            
                    
                    QNWiFiConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="QNUserScaleConfig.html">
            
                <a href="QNUserScaleConfig.html">
            
                    
                    QNUserScaleConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="QNBleKitchenConfig.html">
            
                <a href="QNBleKitchenConfig.html">
            
                    
                    QNBleKitchenConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="QNBleStateListener.html">
            
                <a href="QNBleStateListener.html">
            
                    
                    QNBleStateListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="QNBleDeviceDiscoveryListener.html">
            
                <a href="QNBleDeviceDiscoveryListener.html">
            
                    
                    QNBleDeviceDiscoveryListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="QNBleConnectionChangeListener.html">
            
                <a href="QNBleConnectionChangeListener.html">
            
                    
                    QNBleConnectionChangeListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="QNScaleDataListener.html">
            
                <a href="QNScaleDataListener.html">
            
                    
                    QNScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.17" data-path="QNUserScaleDataListener.html">
            
                <a href="QNUserScaleDataListener.html">
            
                    
                    QNUserScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.18" data-path="QNBleKitchenListener.html">
            
                <a href="QNBleKitchenListener.html">
            
                    
                    QNBleKitchenListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.19" data-path="QNLogListener.html">
            
                <a href="QNLogListener.html">
            
                    
                    QNLogListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.20" data-path="QNResultCallback.html">
            
                <a href="QNResultCallback.html">
            
                    
                    QNResultCallback
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.21" data-path="QNShareData.html">
            
                <a href="QNShareData.html">
            
                    
                    QNShareData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.22" data-path="QNUtils.html">
            
                <a href="QNUtils.html">
            
                    
                    QNUtils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.23" data-path="QNBleProtocolHandler.html">
            
                <a href="QNBleProtocolHandler.html">
            
                    
                    QNBleProtocolHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.24" data-path="QNBleProtocolDelegate.html">
            
                <a href="QNBleProtocolDelegate.html">
            
                    
                    QNBleProtocolDelegate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.25" data-path="QNWspScaleDataListener.html">
            
                <a href="QNWspScaleDataListener.html">
            
                    
                    QNWspScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.26" data-path="QNBleRulerDevice.html">
            
                <a href="QNBleRulerDevice.html">
            
                    
                    QNBleRulerDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.27" data-path="QNBleRulerData.html">
            
                <a href="QNBleRulerData.html">
            
                    
                    QNBleRulerData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.28" data-path="QNBleRulerListener.html">
            
                <a href="QNBleRulerListener.html">
            
                    
                    QNBleRulerListener
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    Schedule
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../attouched_list/faq.html">
            
                <a href="../attouched_list/faq.html">
            
                    
                    FAQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../attouched_list/body_indexes.html">
            
                <a href="../attouched_list/body_indexes.html">
            
                    
                    Body Index Constant
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../attouched_list/device_type.html">
            
                <a href="../attouched_list/device_type.html">
            
                    
                    Device Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../attouched_list/display_module_type.html">
            
                <a href="../attouched_list/display_module_type.html">
            
                    
                    Display module type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../attouched_list/body_shape.html">
            
                <a href="../attouched_list/body_shape.html">
            
                    
                    Body shape comparison table
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../attouched_list/error_code.html">
            
                <a href="../attouched_list/error_code.html">
            
                    
                    Error Code
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../attouched_list/area_type.html">
            
                <a href="../attouched_list/area_type.html">
            
                    
                    Area Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../attouched_list/scan_error.html">
            
                <a href="../attouched_list/scan_error.html">
            
                    
                    Scan Error Code
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../attouched_list/scale_state.html">
            
                <a href="../attouched_list/scale_state.html">
            
                    
                    Scale State Definition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../attouched_list/scale_event.html">
            
                <a href="../attouched_list/scale_event.html">
            
                    
                    Scale event definition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../attouched_list/test_list.html">
            
                <a href="../attouched_list/test_list.html">
            
                    
                    Test Case
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" data-path="../history/history.html">
            
                <a href="../history/history.html">
            
                    
                    Update Log
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >QNBleApi</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="qnbleapi">QNBleApi</h1>
<p>Entrance class</p>
<h2 id="method">Method</h2>
<h3 id="initsdk">initSdk</h3>
<p>Initialize the SDK according to appid and verify the appid and configuration file. This method will also load the relevant configuration in the configuration file.</p>
<p>This method only needs to be called once, not multiple times. It is recommended that Android be called in Application.onCreate, and iOS should be called under AppDelegate didFinishLaunchingWithOptions. This method only performs lightweight operations, and the time-consuming operations are all performed asynchronously, and will not affect the startup speed of the APP.</p>
<p>Normally, this method sends a request to our server to update the configuration in the configuration file, such as updating the algorithm, updating the index, and adding new models. This can achieve the effect of online upgrade configuration. If you clearly do not want to have this feature, you can close this function with our business communication (that is, change the SDK to offline mode). In addition, if there is no network, after the request fails, there will be no impact, the SDK will continue to use the last configuration.</p>
<blockquote>
<p>Note: The <code>123456789</code> appid in the demo is the test id, which has instability and random variability. After reaching an agreement with Yolanda, the access provider can obtain an independent and stable appid. Remember to test Id can not be used in the online application market</p>
</blockquote>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">appId</td>
<td style="text-align:left">String</td>
<td style="text-align:left">The app_id provided by the company to the customer is verified by the local initialization data packet, and Android iOS shares the same appid</td>
</tr>
<tr>
<td style="text-align:left">firstDataFile</td>
<td style="text-align:left">String</td>
<td style="text-align:left">The file path of the configuration file can be transmitted in the form of uri or the full path of the file. The file contains</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Android is the interface, IOS uses the block or closure) callback method, and returns the initialization result. Refer to the attached table for error codes.</td>
</tr>
</tbody>
</table>
<h3 id="getcursystemblestate">getCurSystemBleState</h3>
<p>Get the current system Bluetooth status</p>
<h4 id="return-value">return value</h4>
<p>Type: int</p>
<p><a href="QNBleStateListener.html">Current System Bluetooth Status</a></p>
<h3 id="setsysblestatelistener">setSysBleStateListener</h3>
<p>Set system Bluetooth status callback</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">listener</td>
<td style="text-align:left"><a href="QNBleStateListener.html">QNBleStateListener</a></td>
<td style="text-align:left">The listener contains a method to monitor the Bluetooth status of the system.</td>
</tr>
</tbody>
</table>
<h3 id="setbledevicediscoverylistener">setBleDeviceDiscoveryListener</h3>
<p>Set the scan callback object. When there is a scan result, it will be returned in the set monitoring method. The SDK only supports one callback object. Repeated settings will overwrite the previous results. When it is not needed, it needs to be reset to null, otherwise a memory leak may occur.</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">listener</td>
<td style="text-align:left"><a href="QNBleDeviceDiscoveryListener.html">QNBleDeviceDiscoveryListener</a></td>
<td style="text-align:left">The listener contains a method that will callback in this object when the device is scanned.</td>
</tr>
</tbody>
</table>
<h3 id="setdatalistener">setDataListener</h3>
<p>Set up data transmission listener</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">listener</td>
<td style="text-align:left"><a href="QNScaleDataListener.html">QNScaleDataListener</a> or <a href="QNUserScaleDataListener.html">QNUserScaleDataListener</a></td>
<td style="text-align:left">Measurement data monitoring interface, all data will be called back in it</td>
</tr>
</tbody>
</table>
<h3 id="setblekitchenlistener">setBleKitchenListener</h3>
<p>Set up a Bluetooth kitchen scale listener</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">listener</td>
<td style="text-align:left"><a href="QNBleKitchenListener.html">QNBleKitchenListener</a></td>
<td style="text-align:left">Bluetooth kitchen scale listener</td>
</tr>
</tbody>
</table>
<h3 id="setloglistener">setLogListener</h3>
<p>Set the monitoring of log information</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">listener</td>
<td style="text-align:left"><a href="QNLogListener.html">QNLogListener</a></td>
<td style="text-align:left">Log information monitoring</td>
</tr>
</tbody>
</table>
<h3 id="startbledevicediscovery">startBleDeviceDiscovery</h3>
<p>Start scanning for Bluetooth devices and only return to Yolanda&apos;s device. It automatically stops when it encounters an error or Bluetooth is turned off.</p>
<p>The scan result is called back in <a href="QNBleDeviceDiscoveryListener.html">QNBleDeviceDiscoveryListener</a></p>
<p>For some configuration behavior of scanning, please refer to <a href="#getconfig">getConfig</a>-and-<a href="qnconfig.md">qnconfig</a></p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Callback object, returns whether the call to start scanning is successful</td>
</tr>
</tbody>
</table>
<h3 id="stopbledevicediscovery">stopBleDeviceDiscovery</h3>
<p>To stop scanning Bluetooth devices, this method calls the system&apos;s stop scanning method. If scanning is not started, you also need to call stop scanning to ensure that there will be no more callbacks for scanning objects after calling this method.</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Callback object, return whether the call to stop scanning is successful</td>
</tr>
</tbody>
</table>
<h3 id="connectdevice">connectDevice</h3>
<p>Connect the Yolanda Bluetooth device. The connection process will be called back in <a href="QNBleConnectionChangeListener.html">QNBleConnectionChangeListener</a>, and the measurement data will be called back in QNScaleDataListener</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device</td>
<td style="text-align:left"><a href="QNBleDevice.html">QNBleDevice</a></td>
<td style="text-align:left">Bluetooth device to be connected.</td>
</tr>
<tr>
<td style="text-align:left">user</td>
<td style="text-align:left"><a href="QNUser.html">QNUser</a></td>
<td style="text-align:left">When connecting the device, the user model used includes userId and user information. Created by <a href="#builduser">buildUser</a></td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the connection operation is successfully called (not the connection is successful)</td>
</tr>
</tbody>
</table>
<h3 id="connectuserscaledevice">connectUserScaleDevice</h3>
<p>Connect the Yolanda User Scale device. The connection process will be called back in <a href="QNBleConnectionChangeListener.html">QNBleConnectionChangeListener</a>, and the measurement data will be called back in QNScaleDataListener</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device</td>
<td style="text-align:left"><a href="QNBleDevice.html">QNBleDevice</a></td>
<td style="text-align:left">Bluetooth device to be connected.</td>
</tr>
<tr>
<td style="text-align:left">config</td>
<td style="text-align:left"><a href="QNUserScaleConfig.html">QNUserScaleConfig</a></td>
<td style="text-align:left">Configuration items when connecting to the user scale device</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the connection operation is successfully called (not the connection is successful)</td>
</tr>
</tbody>
</table>
<h3 id="connectblekitchendevice">connectBleKitchenDevice</h3>
<p>To link the Bluetooth kitchen scale, the device object must be the Bluetooth kitchen scale device object returned by the search, the link method is only valid for the Bluetooth kitchen scale</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device</td>
<td style="text-align:left"><a href="QNBleKitchenDevice.html">QNBleKitchenDevice</a></td>
<td style="text-align:left">Bluetooth kitchen scale equipment</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the link operation was successful</td>
</tr>
</tbody>
</table>
<h3 id="setblekitchendeviceconfig">setBleKitchenDeviceConfig</h3>
<p>To set the information of the Bluetooth kitchen scale, the setting is valid when the SDK and the Bluetooth kitchen scale remain linked.</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">config</td>
<td style="text-align:left"><a href="QNBleKitchenConfig.html">QNBleKitchenConfig</a></td>
<td style="text-align:left">Bluetooth kitchen scale setting information</td>
</tr>
</tbody>
</table>
<h3 id="disconnectdevice">disconnectDevice</h3>
<p>Disconnect the connected Yolanda Bluetooth device. The process of disconnecting will be called back in <a href="QNBleConnectionChangeListener.html">QNBleConnectionChangeListener</a></p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device/mac</td>
<td style="text-align:left"><a href="QNBleDevice.html">QNBleDevice</a>/String</td>
<td style="text-align:left">Need to disconnect the Bluetooth device or mac address, these two parameters only need to wear one</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the connection operation is successfully called (not the connection is successful)</td>
</tr>
</tbody>
</table>
<h3 id="getconfig">getConfig</h3>
<p>Get the current settings of SDK</p>
<h4 id="return-value">return value</h4>
<p>Types of: <a href="QNConfig.html">QNConfig</a></p>
<p>SDK setting object, the setting method is also done through <a href="QNConfig.html">QNConfig</a></p>
<h3 id="convertweightwithtargetunit">convertWeightWithTargetUnit</h3>
<p>Convert the weight into the specified unit according to the weight provided in kg</p>
<blockquote>
<p>St is not supported, if st is passed, the value of lb will be returned directly, that is, if lb or st is returned, the APP needs to directly convert the unit of British stone, 1st = 14lb, for example, 145.2lb will be displayed as 10 st 5.2 lb.</p>
</blockquote>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">kgWeight</td>
<td style="text-align:left">double</td>
<td style="text-align:left">Weight in kilograms</td>
</tr>
<tr>
<td style="text-align:left">unit</td>
<td style="text-align:left">int</td>
<td style="text-align:left">0 is kg, the default value<br>1 is lb, pound, all scales can support this unit<br>2 is kg. If the scale does not support it, kg will be displayed<br></td>
</tr>
</tbody>
</table>
<h4 id="return-value">return value</h4>
<p>Type: double</p>
<p>Returns the value in the specified unit</p>
<h3 id="builddevice">buildDevice</h3>
<p>Factory method for creating SDK Bluetooth objects to help support customers</p>
<h4 id="parameters">Parameters</h4>
<h4 id="android">android</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device</td>
<td style="text-align:left">BluetoothDevice</td>
<td style="text-align:left">Call the system scan and return the Bluetooth object</td>
</tr>
<tr>
<td style="text-align:left">rssi</td>
<td style="text-align:left">int</td>
<td style="text-align:left">Call the system scan and return the signal strength</td>
</tr>
<tr>
<td style="text-align:left">scanRecord</td>
<td style="text-align:left">byte[]</td>
<td style="text-align:left">Call the system scan and return the Bluetooth broadcast data</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the operation of creating a device object is successful, and if it is not successful, an error code and an error reason are returned.</td>
</tr>
</tbody>
</table>
<h4 id="ios">ios</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">peripheral</td>
<td style="text-align:left">CBPeripheral</td>
<td style="text-align:left">Peripheral objects</td>
</tr>
<tr>
<td style="text-align:left">advertisementData</td>
<td style="text-align:left">[String: Any]</td>
<td style="text-align:left">Bluetooth broadcast data</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the operation of creating a device object is successful, and if it is not successful, an error code and an error reason are returned.</td>
</tr>
</tbody>
</table>
<h4 id="return-value">return value</h4>
<p>Type <a href="QNBleDevice.html">QNBleDevice</a></p>
<p>Directly return the Yolanda device object created according to the parameters, or NULL if the creation is not successful</p>
<h3 id="buildprotocolhandler">buildProtocolHandler</h3>
<p>Create a Bluetooth protocol processor to help customers manage their Bluetooth connections</p>
<blockquote>
<p>To manage the Bluetooth connection yourself, you need to have a certain understanding of the Bluetooth connection related APIs, and use it with caution</p>
</blockquote>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device</td>
<td style="text-align:left"><a href="QNBleDevice.html">QNBleDevice</a></td>
<td style="text-align:left">The scale device to be connected can be created with <a href="#builddevice">buildDevice</a></td>
</tr>
<tr>
<td style="text-align:left">user</td>
<td style="text-align:left"><a href="QNUser.html">QNUser</a></td>
<td style="text-align:left">The user model used can be created with <a href="#builduser">buildUser</a></td>
</tr>
<tr>
<td style="text-align:left">delegate</td>
<td style="text-align:left"><a href="QNBleProtocolDelegate.html">QNBleProtocolDelegate</a></td>
<td style="text-align:left">Auxiliary class of protocol processing class to assist in the operation of Bluetooth</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the operation was successful</td>
</tr>
</tbody>
</table>
<h4 id="return-value">return value</h4>
<p>Type <a href="QNBleProtocolHandler.html">QNBleProtocolHandler</a></p>
<p>If the creation fails, null/nil will be returned. And return an error code in callback.</p>
<h3 id="generatescaledata">generateScaleData</h3>
<p>Generate measurement data, if the parameter is abnormal, the method will return NUL</p>
<p>This method only supports wsp devices</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">user</td>
<td style="text-align:left"><a href="QNUser.html">QNUser</a></td>
<td style="text-align:left">The user to which the data belongs</td>
</tr>
<tr>
<td style="text-align:left">modeId</td>
<td style="text-align:left">String</td>
<td style="text-align:left">Model identification</td>
</tr>
<tr>
<td style="text-align:left">weight</td>
<td style="text-align:left">Double</td>
<td style="text-align:left">Weight in kg</td>
</tr>
<tr>
<td style="text-align:left">resistance</td>
<td style="text-align:left">int</td>
<td style="text-align:left">50 impedance value</td>
</tr>
<tr>
<td style="text-align:left">secResistance</td>
<td style="text-align:left">int</td>
<td style="text-align:left">500 impedance value</td>
</tr>
<tr>
<td style="text-align:left">heartRate</td>
<td style="text-align:left">int</td>
<td style="text-align:left">Heart rate value, or 0 if none</td>
</tr>
<tr>
<td style="text-align:left">measureTime</td>
<td style="text-align:left">Date</td>
<td style="text-align:left">measure time</td>
</tr>
<tr>
<td style="text-align:left">hmac</td>
<td style="text-align:left">String</td>
<td style="text-align:left">Related data signature</td>
</tr>
</tbody>
</table>
<h4 id="return-value">return value</h4>
<p>Type: <a href="QNScaleData.html">QNScaleData</a></p>
<p>On error, return NULL</p>
<h3 id="physiquecalculation">physiqueCalculation</h3>
<p>Calculate the user&apos;s physical fitness data. If the <code>Physical fitness calculation</code> function option is not enabled in the SDK configuration information, the method will return NUL</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">user</td>
<td style="text-align:left"><a href="QNUser.html">QNUser</a></td>
<td style="text-align:left">The user to which the data belongs</td>
</tr>
<tr>
<td style="text-align:left">weight</td>
<td style="text-align:left">Double</td>
<td style="text-align:left">Weight in kg</td>
</tr>
<tr>
<td style="text-align:left">area</td>
<td style="text-align:left">Int</td>
<td style="text-align:left">User&apos;s region 0: Other ;  1: Asia</td>
</tr>
<tr>
<td style="text-align:left">measureTime</td>
<td style="text-align:left">Date</td>
<td style="text-align:left">measure time</td>
</tr>
</tbody>
</table>
<h4 id="return-value">return value</h4>
<p>Type: <a href="QNScaleData.html">QNScaleData</a></p>
<p>On error, return NULL</p>
<h3 id="switchuserscaleuser">switchUserScaleUser</h3>
<p>After the user scale device is successfully connected, the linked user information will be updated, which will be called back in <a href="QNUserScaleDataListener.html">QNUserScaleDataListener</a>, and the measurement data will be called back in QNScaleDataListener</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">user</td>
<td style="text-align:left"><a href="QNUser.html">QNUser</a></td>
<td style="text-align:left">User Info</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the call to update the user information of the scale is successful (not that the user information of the scale has been updated)</td>
</tr>
</tbody>
</table>
<h3 id="updateuserscaleidentifyweight">updateUserScaleIdentifyWeight</h3>
<p>Used to update the user scale to identify the user&apos;s weight</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">weight</td>
<td style="text-align:left">double</td>
<td style="text-align:left">weight</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the update user scale operation is called successfully</td>
</tr>
</tbody>
</table>
<h3 id="deletescaleusers">deleteScaleUsers</h3>
<p>Used to delete the user information of the user scale</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">indexList</td>
<td style="text-align:left">[int]</td>
<td style="text-align:left">user index array</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the call to delete the user information on the scale is successful or not</td>
</tr>
</tbody>
</table>
<h2 id="bluetooth-ruler-api">Bluetooth ruler api</h2>
<h3 id="setblerulerlistener">setBleRulerListener</h3>
<p>Set up a bluetooth ruler listener</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">listener</td>
<td style="text-align:left"><a href="QNBleRulerListener.html">QNBleRulerListener</a></td>
<td style="text-align:left">Bluetooth ruler listener</td>
</tr>
</tbody>
</table>
<h3 id="connectrulerdevice">connectRulerDevice</h3>
<p>connect bluetooth ruler</p>
<h4 id="parameters">Parameters</h4>
<table>
<thead>
<tr>
<th style="text-align:left">name</th>
<th style="text-align:left">Types of</th>
<th style="text-align:left">Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">device</td>
<td style="text-align:left"><a href="QNBleRulerDevice.html">QNBleRulerDevice</a></td>
<td style="text-align:left">Bluetooth ruler</td>
</tr>
<tr>
<td style="text-align:left">callback</td>
<td style="text-align:left"><a href="QNResultCallback.html">QNResultCallback</a></td>
<td style="text-align:left">Returns whether the call to the connect method was successful</td>
</tr>
</tbody>
</table>
<h3 id="readauthdeviceinfolist">readAuthDeviceInfoList</h3>
<p>Read the list of authorized device information</p>
<h4 id="return-value">return value</h4>
<p>Device info set</p>
<h3 id="readsdkconfigurationinfo">readSDKConfigurationInfo</h3>
<p>Read SDK authorization configuration information</p>
<h4 id="return-value">return value</h4>
<p>String</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="QNBleApi.html#initsdk" class="navigation navigation-next navigation-unique" aria-label="Next page: initSdk">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"QNBleApi","level":"1.5.1","depth":2,"next":{"title":"initSdk","level":"1.5.1.1","depth":3,"anchor":"#initsdk","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#initsdk","articles":[]},"previous":{"title":"API","level":"1.5","depth":1,"ref":"","articles":[{"title":"QNBleApi","level":"1.5.1","depth":2,"path":"api/QNBleApi.md","ref":"api/QNBleApi.md","articles":[{"title":"initSdk","level":"1.5.1.1","depth":3,"anchor":"#initsdk","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#initsdk","articles":[]},{"title":"getCurSystemBleState","level":"1.5.1.2","depth":3,"anchor":"#getcursystemblestate","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#getcursystemblestate","articles":[]},{"title":"setSysBleStateListener","level":"1.5.1.3","depth":3,"anchor":"#setsysblestatelistener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setsysblestatelistener","articles":[]},{"title":"setBleDeviceDiscoveryListener","level":"1.5.1.4","depth":3,"anchor":"#setbledevicediscoverylistener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setbledevicediscoverylistener","articles":[]},{"title":"setBleConnectionChangeListener","level":"1.5.1.5","depth":3,"anchor":"#setbleconnectionchangelistener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setbleconnectionchangelistener","articles":[]},{"title":"setDataListener","level":"1.5.1.6","depth":3,"anchor":"#setdataListener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setdataListener","articles":[]},{"title":"setBleKitchenListener","level":"1.5.1.7","depth":3,"anchor":"#setblekitchenlistener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setblekitchenlistener","articles":[]},{"title":"setLogListener","level":"1.5.1.8","depth":3,"anchor":"#setloglistener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setloglistener","articles":[]},{"title":"startBleDeviceDiscovery","level":"1.5.1.9","depth":3,"anchor":"#startbledevicediscovery","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#startbledevicediscovery","articles":[]},{"title":"stopBleDeviceDiscovery","level":"1.5.1.10","depth":3,"anchor":"#stopbledevicediscovery","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#stopbledevicediscovery","articles":[]},{"title":"connectDevice","level":"1.5.1.11","depth":3,"anchor":"#connectdevice","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#connectdevice","articles":[]},{"title":"connectUserScaleDevice","level":"1.5.1.12","depth":3,"anchor":"#connectuserscaledevice","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#connectuserscaledevice","articles":[]},{"title":"connectBleKitchenDevice","level":"1.5.1.13","depth":3,"anchor":"#connectblekitchendevice","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#connectblekitchendevice","articles":[]},{"title":"setBleKitchenDeviceConfig","level":"1.5.1.14","depth":3,"anchor":"#setblekitchendeviceconfig","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setblekitchendeviceconfig","articles":[]},{"title":"disconnectDevice","level":"1.5.1.15","depth":3,"anchor":"#disconnectdevice","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#disconnectdevice","articles":[]},{"title":"getConfig","level":"1.5.1.16","depth":3,"anchor":"#getconfig","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#getconfig","articles":[]},{"title":"convertWeightWithTargetUnit","level":"1.5.1.17","depth":3,"anchor":"#convertweightwithtargetunit","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#convertweightwithtargetunit","articles":[]},{"title":"buildDevice","level":"1.5.1.18","depth":3,"anchor":"#builddevice","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#builddevice","articles":[]},{"title":"buildProtocolHandler","level":"1.5.1.19","depth":3,"anchor":"#buildprotocolhandler","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#buildprotocolhandler","articles":[]},{"title":"generateScaleData","level":"1.5.1.20","depth":3,"anchor":"#generatescaledata","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#generatescaledata","articles":[]},{"title":"physiqueCalculation","level":"1.5.1.21","depth":3,"anchor":"#physiquecalculation","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#physiquecalculation","articles":[]},{"title":"switchUserScaleUser","level":"1.5.1.22","depth":3,"anchor":"#switchuserscaleuser","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#switchuserscaleuser","articles":[]},{"title":"updateUserScaleIdentifyWeight","level":"1.5.1.23","depth":3,"anchor":"#updateuserscaleidentifyweight","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#updateuserscaleidentifyweight","articles":[]},{"title":"setBleRulerListener","level":"1.5.1.24","depth":3,"anchor":"#setblerulerlistener","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#setblerulerlistener","articles":[]},{"title":"connectRulerDevice","level":"1.5.1.25","depth":3,"anchor":"#connectrulerdevice","path":"api/QNBleApi.md","ref":"api/QNBleApi.md#connectrulerdevice","articles":[]}]},{"title":"QNUser","level":"1.5.2","depth":2,"path":"api/QNUser.md","ref":"api/QNUser.md","articles":[]},{"title":"QNScaleData","level":"1.5.3","depth":2,"path":"api/QNScaleData.md","ref":"api/QNScaleData.md","articles":[]},{"title":"QNScaleStoreData","level":"1.5.4","depth":2,"path":"api/QNScaleStoreData.md","ref":"api/QNScaleStoreData.md","articles":[]},{"title":"QNScaleItemData","level":"1.5.5","depth":2,"path":"api/QNScaleItemData.md","ref":"api/QNScaleItemData.md","articles":[]},{"title":"QNBleDevice","level":"1.5.6","depth":2,"path":"api/QNBleDevice.md","ref":"api/QNBleDevice.md","articles":[]},{"title":"QNBleBroadcastDevice","level":"1.5.7","depth":2,"path":"api/QNBleBroadcastDevice.md","ref":"api/QNBleBroadcastDevice.md","articles":[]},{"title":"QNBleKitchenDevice","level":"1.5.8","depth":2,"path":"api/QNBleKitchenDevice.md","ref":"api/QNBleKitchenDevice.md","articles":[]},{"title":"QNConfig","level":"1.5.9","depth":2,"path":"api/QNConfig.md","ref":"api/QNConfig.md","articles":[]},{"title":"QNWiFiConfig","level":"1.5.10","depth":2,"path":"api/QNWiFiConfig.md","ref":"api/QNWiFiConfig.md","articles":[]},{"title":"QNUserScaleConfig","level":"1.5.11","depth":2,"path":"api/QNUserScaleConfig.md","ref":"api/QNUserScaleConfig.md","articles":[]},{"title":"QNBleKitchenConfig","level":"1.5.12","depth":2,"path":"api/QNBleKitchenConfig.md","ref":"api/QNBleKitchenConfig.md","articles":[]},{"title":"QNBleStateListener","level":"1.5.13","depth":2,"path":"api/QNBleStateListener.md","ref":"api/QNBleStateListener.md","articles":[]},{"title":"QNBleDeviceDiscoveryListener","level":"1.5.14","depth":2,"path":"api/QNBleDeviceDiscoveryListener.md","ref":"api/QNBleDeviceDiscoveryListener.md","articles":[]},{"title":"QNBleConnectionChangeListener","level":"1.5.15","depth":2,"path":"api/QNBleConnectionChangeListener.md","ref":"api/QNBleConnectionChangeListener.md","articles":[]},{"title":"QNScaleDataListener","level":"1.5.16","depth":2,"path":"api/QNScaleDataListener.md","ref":"api/QNScaleDataListener.md","articles":[]},{"title":"QNUserScaleDataListener","level":"1.5.17","depth":2,"path":"api/QNUserScaleDataListener.md","ref":"api/QNUserScaleDataListener.md","articles":[]},{"title":"QNBleKitchenListener","level":"1.5.18","depth":2,"path":"api/QNBleKitchenListener.md","ref":"api/QNBleKitchenListener.md","articles":[]},{"title":"QNLogListener","level":"1.5.19","depth":2,"path":"api/QNLogListener.md","ref":"api/QNLogListener.md","articles":[]},{"title":"QNResultCallback","level":"1.5.20","depth":2,"path":"api/QNResultCallback.md","ref":"api/QNResultCallback.md","articles":[]},{"title":"QNShareData","level":"1.5.21","depth":2,"path":"api/QNShareData.md","ref":"api/QNShareData.md","articles":[]},{"title":"QNUtils","level":"1.5.22","depth":2,"path":"api/QNUtils.md","ref":"api/QNUtils.md","articles":[]},{"title":"QNBleProtocolHandler","level":"1.5.23","depth":2,"path":"api/QNBleProtocolHandler.md","ref":"api/QNBleProtocolHandler.md","articles":[]},{"title":"QNBleProtocolDelegate","level":"1.5.24","depth":2,"path":"api/QNBleProtocolDelegate.md","ref":"api/QNBleProtocolDelegate.md","articles":[]},{"title":"QNWspScaleDataListener","level":"1.5.25","depth":2,"path":"api/QNWspScaleDataListener.md","ref":"api/QNWspScaleDataListener.md","articles":[]},{"title":"QNBleRulerDevice","level":"1.5.26","depth":2,"path":"api/QNBleRulerDevice.md","ref":"api/QNBleRulerDevice.md","articles":[]},{"title":"QNBleRulerData","level":"1.5.27","depth":2,"path":"api/QNBleRulerData.md","ref":"api/QNBleRulerData.md","articles":[]},{"title":"QNBleRulerListener","level":"1.5.28","depth":2,"path":"api/QNBleRulerListener.md","ref":"api/QNBleRulerListener.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"mermaid-gb3":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"en","gitbook":"*"},"file":{"path":"api/QNBleApi.md","mtime":"2023-01-16T11:02:03.546Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-01-16T11:02:39.181Z"},"basePath":"..","book":{"language":"en"}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

